package com.example.kotlintest.extends

 open class Person(name :String ,age :Int) {
    lateinit var name:String
    var age:Int = 0
    fun add():Int{
        return 1;
    }
     fun test(b:Boolean,c:String,a:Int=0){

     }
     init {
         this.name=name;
         this.age=age;
     }

     override fun toString():String{

         return "姓名："+name+"年龄："+age
     }

}